/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.test.entity;

import org.hibernate.validator.constraints.Length;

import com.kaaction.common.persistence.DataEntity;

/**
 * testEntity
 * @author test
 * @version 2017-04-26
 */
public class MmSon extends DataEntity<MmSon> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// name
	private MmDad dadId;		// dad_id 父类
	private String cover;		// cover
	
	public MmSon() {
		super();
	}

	public MmSon(String id){
		super(id);
	}

	public MmSon(MmDad dadId){
		this.dadId = dadId;
	}

	@Length(min=0, max=64, message="name长度必须介于 0 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=64, message="dad_id长度必须介于 0 和 64 之间")
	public MmDad getDadId() {
		return dadId;
	}

	public void setDadId(MmDad dadId) {
		this.dadId = dadId;
	}
	
	@Length(min=0, max=200, message="cover长度必须介于 0 和 200 之间")
	public String getCover() {
		return cover;
	}

	public void setCover(String cover) {
		this.cover = cover;
	}
	
}